- content_for :meta do
  %meta{:name => "Description", :content => @photo.caption}
  %meta{:name => "Abstract", :content => @photo.caption}
  %meta{:name => "Keywords", :content => @photo.keywords}
- content_for :title do
  = @photo.caption
- if logged_in? and current_user.is_admin?
  - content_for :admin_nav do
    %div.edit
      [
      %a{:href => edit_photo_url(@photo), :title => "Edit " + @photo.filename}edit
      ]

%div.large_photo
  %img.large_screen_photo{:src => @photo.public_filename(:screen), :title => (@photo.caption ? @photo.caption : @photo.filename), :alt => (@photo.caption ? @photo.caption : @photo.filename)}
- unless @photo.caption.blank?  
  %div.photo_description
    %p=@photo.caption